/*Harmonia = 2081100*/
/*Gritto = 2081200*/
/*Hellin = 2081400*/
/*Legor = 2081300*/
/*Coded by TheOldWizard*/

void npc(Player @player, NPC @npc) {
       int state = npc.getState();
       if(state == 0){     
          if(player.getJob() == 311 || player.getJob() == 321){
                       if(player.getLevel() >= 120 && player.getStr() >= 180 && player.getDex() >= 200){
                       npc.addText("You have talked to Rene about becoming a Intonger Warrior, yes?");
                          state = 1;
                          npc.sendYesNo();
                       }
                    else{
                       npc.addText("You're too weak. Come back when you're at least level 120 and have a minimum of 180 STR and 200 DEX.");
                       npc.sendOK();
                       npc.end();
                    }
              }
              if(npc.getSelected() == YES){
                    if(player.getJob() == 311 || player.getJob() == 321){
                       npc.addText("Well, you'll have to prove your Strength to me. Bring me 1 The Heroic Star and 1 The Heroic Pentagon. You can obtain this item by defeating a Manon or Griffery. or, you can Give a scroll called Secret Letter of Spell to Chief Tatamo of Leafre and he will give you the 2 items. Vega in the 44th floor of the Eos Tower sells the scroll. But mind you, this scroll cost 10,000,000 mesos.");
        }
      	else if(state == 1){
          if(player.getJob() == 311 || player.getJob() == 321){
                 if(player.getItemAmount(4031512) >= 1 && player.getItemAmount(4031511) >= 1){
                       npc.addText("Very well, soldier. May The Light be with you. From this point on, you will no longer consider yourself a Master Bowman. You will be considered a True Hero of MapleStory. Go on, be Strong."); 
                       if(player.getJob() == 311){
			  player.setJob(312);
}
                  else if(player.getJob() == 321){
			  player.setJob(322);
}
                          npc.sendOK();
			  }
		  else{
		       npc.addText("You're too weak. Come back when you're at least level 120 and have a minimum of 180 STR and 200 DEX.");
                       npc.sendOK();
                       npc.end();
		       }
                  }
			npc.end();
	  	        }
       }
}